package com.ydl.learning.scala

/**
  * 匿名函数
  *
  * @author ydl
  * @since 2021/2/20
  */
object AnonymousFunc extends App {
  var inc = (x: Int) => x + 1
  println(inc(2))
}
